package com.zjkj.mp.vo.message;

import java.io.Serializable;

import com.zjkj.mp.vo.user.MpUser;

/**
 * 
 * 发送信息表
 * 
 * @author <a href="mailto:409384898@qq.com">chenchen</a>
 * @history
 * <TABLE id="HistoryTable" border="1">
 * 	<TR><TD>时间</TD><TD>描述</TD><TD>作者</TD></TR>
 *	<TR><TD>2013-6-5</TD><TD>创建初始版本</TD><TD>chenchen</TD></TR>
 * </TABLE>
 */
public class Message implements Serializable {
    
	private static final long serialVersionUID = -5912386566198716734L;

	private String fsId; 
	private String content; 
	private int userId; 
	private int totalCount;
	private String sendDate;
	private String state;
	private String endDate;
	
	private MpUser user;
	private String realName;
	
	public String getFsId() {
		return fsId;
	}
	public void setFsId(String fsId) {
		this.fsId = fsId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public String getSendDate() {
		return sendDate;
	}
	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public MpUser getUser() {
		return user;
	}
	public void setUser(MpUser user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "Message [fsId=" + fsId + ", content=" + content + ", userId="
				+ userId + ", totalCount=" + totalCount + ", sendDate="
				+ sendDate + ", state=" + state + ", endDate=" + endDate
				+ ", user=" + user + "]";
	}	
	
	/**
	 * 得到状态的中文名称
	 * @return
	 */
	public String getStateName(){
		return MessageState.getStateName(this.state);
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	
}

/**
 * Copyright © 2013,指尖科技 All rights reserved.
 */
